<template>
  <!-- 吸顶 -->
  <AppHeaderSticky />
  <!-- 顶部 -->
  <TopNav />
  <!-- 头部 -->
  <AppHeader />
  <!-- 内容 -->
  <div class="main">
    <RouterView />
  </div>
  <!-- 底部 -->
  <AppFooter />
</template>

<script>
import TopNav from '../components/app-topnav.vue'
import AppHeader from '../components/app-header.vue'
import AppFooter from '../components/app-footer.vue'
import AppHeaderSticky from '../components/app-header-sticky.vue'
import store from '@/store'
export default {
  name: 'LayoutOne',
  components: { TopNav, AppHeader, AppFooter, AppHeaderSticky },
  setup() {
    store.dispatch('category/getList')
  },
}
</script>

<style lang="scss" scoped>
</style>